package com.sxt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxt.common.DataGridView;

import com.sxt.domain.GoodsType;
import com.sxt.mapper.GoodsTypeMapper;

import com.sxt.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

@Service
public class GoodsTypeServiceImpl extends ServiceImpl<GoodsTypeMapper, GoodsType> implements GoodsTypeService {

    @Autowired
    private GoodsTypeMapper goodsTypeMapper;

   /* @Override
    public DataGridView queryAllBillType() {
        return new DataGridView(GoodsTypeMapper.selectList(null));
    }*/


    @Override
    public GoodsType getById(Serializable id) {
        return super.getById(id);
    }

    @Override
    public DataGridView queryAllGoodsType() {
        return new DataGridView(goodsTypeMapper.selectList(null));
    }
}
